<?php

namespace App\Models;

use App\Traits\DateFormat;
use App\Traits\ModelTrait;


class ManagerLog extends Base
{
    use DateFormat, ModelTrait;

    protected $table = 'manager_logs';

    protected $fillable = [
        'method',
        'ip',
        'input',
        'user_id',
        'path',
    ];

    /**
     * 关联 管理员
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function manager()
    {
        return $this->belongsTo(Manager::class, 'user_id', 'id');
    }
}
